﻿using LJLib.Net.SPI.Com;

namespace PhoneUI.Com
{
    public sealed class LoginRequest : ILJRequest<LoginResponse>
    {
        public string account { get; set; }
        public string userid { get; set; }
        public string password { get; set; }

        public string GetApiName()
        {
            return "Login";
        }
    }

    public sealed class LoginResponse : LJResponse
    {
        // 登陆成功只需求返回用户名与权限就可以，token应该由客户端建立会话后一直保存
        public string token { get; set; }
        public string power { get; set; }
        public string username { get; set; }
        // 用于接收推送信息的唯一码XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
        public string uuid { get; set; }
    }
}